<f:view xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ice="http://www.icesoft.com/icefaces/component"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">
	<ui:composition template="./layoutTemplate.xhtml">
		<ui:define name="title">
			<ice:panelGroup>
			Create/Update Job
			</ice:panelGroup>
		</ui:define>
		<ui:define name="content">
		<f:subview id="job_cnt">
			<ice:panelGrid columns="1">
			<ice:panelGrid columns="2">
				<ice:outputText value="Group"/>
				<ice:inputText value="${jobDC.jobRecord.job.group}" partialSubmit="false"/>
				<ice:outputText value="Name"/>
				<ice:inputText value="${jobDC.jobRecord.job.name}" partialSubmit="false"/>
				<ice:outputText value="Job Class"/>
				<ice:inputText value="${jobDC.jobRecord.jobClassName}" partialSubmit="false"/>
			</ice:panelGrid>
			<ice:panelGrid columns="1">
				<ice:commandButton type="submit" value="Save" styleClass="submitButton"
							action="#{jobDC.saveJobActionPerformed}" 
							partialSubmit="false"/>
			</ice:panelGrid>
			</ice:panelGrid>
			
			<!-- TABLE -->
			<ice:panelGroup rendred="${!empty jobDC.jobList}">
				<ice:dataTable id="jobList" value="${jobDC.jobList}" var="record"
					rows="${jobDC.pageSize}" 
					rowClasses="whiteColored"
					resizable="true">
					<ice:column>
						<f:facet name="header">
							<ice:outputText value="Group" />
						</f:facet>
						<ice:outputText value="${record.job.group}">
						</ice:outputText>
					</ice:column>
					<ice:column>
						<f:facet name="header">
							<ice:outputText value="Name" />
						</f:facet>
						<ice:outputText value="${record.job.name}">
						</ice:outputText>
					</ice:column>
					<ice:column>
						<f:facet name="header">
							<ice:outputText value="Job Class" />
						</f:facet>
						<ice:outputText value="${record.jobClassName}">
						</ice:outputText>
					</ice:column>
				</ice:dataTable>
			</ice:panelGroup>
		</f:subview>
		</ui:define>
	</ui:composition>
</f:view>
